﻿using Newtonsoft.Json;

namespace Spark.WeiXinSdk.App
{
    public class UserInfo
    {
        [JsonProperty(PropertyName = "openid")]
        public string OpenId { get; set; }

        [JsonProperty(PropertyName = "nickname")]
        public string NickName { get; set; }

        [JsonProperty(PropertyName = "sex")]
        public int Sex { get; set; }

        [JsonProperty(PropertyName = "province")]
        public string Province { get; set; }

        [JsonProperty(PropertyName = "city")]
        public string City { get; set; }

        [JsonProperty(PropertyName = "country")]
        public string Country { get; set; }

        [JsonProperty(PropertyName = "headimgurl")]
        public string HeadImgUrl { get; set; }

        [JsonProperty(PropertyName = "privilege")]
        public string[] Privilege { get; set; }

        [JsonProperty(PropertyName = "unionid")]
        public string UnionId { get; set; }

        [JsonProperty(PropertyName = "errcode")]
        public string ErrCode { get; set; }

        [JsonProperty(PropertyName = "errmsg")]
        public string ErrMsg { get; set; }
    }
}